Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove creation of file z! on init in fish #631

Closed
wants to merge 1 commit into from

Conversation

arsenier
Copy link

In fish 3.1 executing zoxide init fish | source creates file z! in working directory. Some experimentation showed, that such commands: echo ^(echo 'z!') have similar effect.
Caret removal fixes issue with creating files and does not affect init behaivour:

$ cat ~/.config/fish/zoxide_init | source
$ echo $__zoxide_z_prefix_regex
z!

(zoxide_init is changed init script)

@ajeetdsouza
Copy link
Owner

This seems like a bug in Fish rather than zoxide, that has been patched in the later versions. Unfortunately, this solution can cause problems, because z! is no longer treated like prefix:

$ z az!
cd: The directory 'a' does not exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants